package org.thy.demo1xly;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController // 添加这个注解以便让 Spring 识别这个类中的 REST 控制器方法
public class Demo1xlyApplication {

	@GetMapping("/test")
	public String test() {
		return "啊哈哈哈哈哈";
	}

	public static void main(String[] args) {
		SpringApplication.run(Demo1xlyApplication.class, args);
	}
}
